package tests;

import java.net.UnknownHostException;

import com.wsc.crawler.init.CrawlerConfig;

public class CrawlerConfigTest {
	
	
public static void main(String...s){
	
	
	CrawlerConfig c=new CrawlerConfig();
	c.loadDefaultXmlFile();
	
 System.out.println(c.getCrawler_Threads());
	//System.out.println(c.getDept());
	try {
		System.out.println("Indexer host port "+c.getIndexerHost().getHostName()+":"+c.getIndexerHost().getPort());
		System.out.println("Frontier host port "+c.getFrontierHost().getHostName()+":"+c.getFrontierHost().getPort());
	} catch (UnknownHostException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
	System.out.println("heart beat Delay "+c.getHeartbeat_Delay());
	System.out.println("Log Dir"+c.getLog_dir());
	System.out.println("Polite ness delay "+c.getPoliteness_Delay());
	System.out.println("Request Timeout "+c.getRequest_Timeout());
	System.out.println("Seed Urls from "+c.getSeed_Urls_From());
	System.out.println("Snap shot Delay "+c.getSnapshot_Delay());
	System.out.println("Get TMP dir "+c.getTmp_dir());
	System.out.println("User Agent "+c.getUser_Agent());
	System.out.println("Expression "+c.getWsdl_Filter_Expression());
	System.out.println("Mime types "+c.getAllowed_MIME_Types());
	System.out.println("Allowd Schemes "+c.getAllowed_Schemes().toString());
	System.out.println("Exclude Domines "+c.getExclude_Domains());
	System.out.println("Exclude Hosts "+c.getExclude_Hosts());
	System.out.println("Extract links From "+c.getExtract_Links_From());
	System.out.println("Include Domines"+c.getInclude_Domains());
	System.out.println("Retry Attempts "+c.getRetry_Atempts());
	
	System.out.println("Heart Beat Server host "+c.getHeartBeat_Host());
	
}
}
